package day05home;
//扩展练习 利用for循环计算：求8的阶乘，并输出
public class Factorial {
    public static void main(String[] args) {
        int product=1;
        for (int i = 1; i <=8 ; i++) {
            product*=i;
        }
        System.out.println("8的阶乘为"+product);
    }
}
